package cn.sdormitory.smartdor.service.impl;

import cn.sdormitory.common.api.CommonResult;
import cn.sdormitory.smartdor.dao.SdRentPayRecordDao;
import cn.sdormitory.smartdor.entity.SdRentPayRecord;
import cn.sdormitory.smartdor.service.SdRentPayRecordService;
import cn.sdormitory.smartdor.vo.SdRentPayRecordVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SdRentPayRecordServiceImpl extends ServiceImpl<SdRentPayRecordDao, SdRentPayRecord> implements SdRentPayRecordService {

    @Autowired
    SdRentPayRecordDao sdRentPayRecordDao;

    @Override
    public CommonResult findPayRecordList(String studentNo) {
        List<SdRentPayRecordVO> payRecordList = sdRentPayRecordDao.findPayRecordList(studentNo);
        return CommonResult.success(payRecordList);
    }
}
